#ifndef VDSDEVICE_H
#define VDSDEVICE_H

#include <stddef.h>

class VdsDevicePrivate;
class VdsDevice
{
public:
    VdsDevice();
    ~VdsDevice();

    bool open();
    bool close();

    int read(unsigned char * data, size_t length);
    bool write(const char * data, size_t length);

    long errorCode() const;

private:
    VdsDevicePrivate *d;
};

#endif // VDSDEVICE_H
